remove empty elements from a list of strings - array